#ifndef UNDRAGWIDGET_H
#define UNDRAGWIDGET_H

#include <QWidget>
#include <QMouseEvent>
#include <QPaintEvent>
#include <QPainter>
#include <QStyleOption>

class UndragWidget : public QWidget
{
    Q_OBJECT
public:
    explicit UndragWidget(QWidget *parent = nullptr);
signals:
protected:
    void mousePressEvent(QMouseEvent* event);
    void mouseMoveEvent(QMouseEvent* event);
    void mouseReleaseEvent(QMouseEvent* event);
    void paintEvent(QPaintEvent *event);

};

#endif // UNDRAGWIDGET_H
